<?php
class mutasibank_model extends CI_Model{
	private $noKwitansi;
	private $noFaktur;
	private $totalQuantity;
	private $disc;
	private $ppn;
	private $totalamountin;
	private $totalamountout;
	private $kodebank;
	private $keterangan;
	private $createdby;
    private $createdon;
    private $lastupdateby;
  	private $lastupdateon;
  	private $active;
  	
  	function setNoKwitansi($nKw){
  		$this->noKwitansi = $nKw;
  	}
  	
  	function getNoKwitansi(){
  		return $this->noKwitansi;
  	}
  	
  	function setNoFaktur($noFaktur){
  		$this->noFaktur = $noFaktur;
  	}
  	
  	function getNoFaktur(){
  		return $this->noFaktur;
  	}
  	
  	function setTotalQuantity($totQty){
  		$this->totalQuantity = $totQty;
  	}
  	
  	function getTotalQuantity(){
  		return $this->totalQuantity;
  	}
  	
  	function setDisc($ds){
  		$this->disc = $ds;
  	}
  	
  	function getDisc(){
  		return $this->disc;
  	}
  	
  	function setPpn($ppn){
  		$this->ppn = $ppn;
  	}
  	
  	function getPpn(){
  		return $this->ppn;
  	}
  	
  	function setTotalAmountIn($totalAmountIn){
  		$this->totalamountin = $totalAmountIn;
  	}
  	
  	function getTotalAmountIn(){
  		return $this->totalamountin;
  	}
  	
  	function setTotalAmountOut($totAmountOut){
  		$this->totalamountout = $totAmountOut;
  	}
  	
  	function getTotalAmountOut(){
  		return $this->totalamountout;
  	}
  	
  	function setKodeBank($kdBank){
  		$this->kodebank = $kdBank;
  	}
  	
  	function getKodeBank(){
  		return $this->kodebank;
  	}
  	
  	function setKeterangan($ktrg){
  		$this->keterangan = $ktrg;
  	}
  	
  	function getKeterangan(){
  		return $this->keterangan;
  	}

	function setCreatedBy($c_by){
		$this->createdby = $c_by;
	}

	function getCreatedBy(){
		return $this->createdby;
	}

	function setCreatedOn(){
		$dateNow = date('Y-m-d H:i:s');
		$this->createdon = $dateNow;
	}

	function getCreatedOn(){
		return $this->createdon;
	}

	function setLastUpdateBy($u_by){
		$this->lastupdateby = $u_by;
	}

	function getLastUpdateBy(){
		return $this->lastupdateby;
	}

	function setLastUpdateOn(){
		$dateNow = date('Y-m-d H:i:s');
		$this->lastupdateon = $dateNow;
	}

	function getLastUpdateOn(){
		return $this->lastupdateon;
	}

	function setActive($active_val){
		$this->active = $active_val;
	}

	function getActive(){
		return $this->active;
	}
	
	function __construct(){
		parent::__construct();
	}
	
	function insert(){
		$data = array(
			'NoKwitansi' => $this->getNoKwitansi(),
			'NoFaktur' => $this->getNoFaktur(),
			'TotalQuantity' => $this->getTotalQuantity(),
			'Discount' => $this->getDisc(),
			'Ppn' => $this->getPpn(),
			'Totalamount_in' => $this->getTotalAmountIn(),
			'totalamount_out' => $this->getTotalAmountOut(),
			'kodebank' => $this->getKodeBank(),
			'keterangan' => $this->getKeterangan(),
			'createdby' => $this->getCreatedBy(),
		    'createdon' => $this->getCreatedOn(),
		    'lastupdateby' => $this->getLastUpdateBy(),
		  	'lastupdateon' => $this->getLastUpdateOn(),
		  	'active' => '1'
		);
		$this->db->insert('mutasi_bank',$data);
	}
}